package cn.tedu.supermarket.entity;

public class Address extends AddressVO{
    private Integer id;

    public Address(Integer id) {
        this.id = id;
    }

    public Address(Integer id, Integer userId, String name, String phone, String address) {
        super(userId, name, phone, address);
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "AddressVO{" +
                "id=" + id +
                ", userId=" + super.getUserId() +
                ", name='" + super.getName() + '\'' +
                ", phone='" + super.getPhone() + '\'' +
                ", address='" + super.getAddress() + '\'' +
                '}';
    }
}
